package com.tbit.main.pojo;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @author LMY
 * @create 2022-03-30 14:26
 * 品牌流水数据
 */
@Data
public class BrandSerialDaySta {
    /**
     * 品牌Id
     */
    private Integer brandId;
    /**
     * 订单类型 0微信,1支付宝
     */
    private Integer type;
    /**
     * 订单总数
     */
    private Integer orderCount;
    /**
     * 订单总金额
     */
    private BigDecimal orderMoney;
    /**
     * 订单日期
     */
    private String orderDate;
    /**
     * 添加时间
     */
    private String addTime;

    public void setOrderMoney(Long orderMoney) {
        BigDecimal bigDecimal = new BigDecimal(orderMoney);
        bigDecimal = bigDecimal.divide(new BigDecimal("100")).setScale(2, BigDecimal.ROUND_HALF_UP);
        this.orderMoney = bigDecimal;
    }
}
